Ext.define('DragonApp.store.Tag', {
    extend: 'Ext.data.Store',
    model: 'DragonApp.model.Image',

    alias: 'store.tagStore',

    proxy: {
        type: 'jsonp',
        url: DragonApp.ux.config.Config.getUrl('/index/Img/doTagList/'),
        callbackKey: 'callback',

        reader: {
            type: 'json',
            rootProperty: 'rows',
            totalProperty: 'total'
        }
    },
    autoLoad: true,
    listeners: {
        exception: function(proxy, response, operation) {
            DragonApp.util.Msg.showErrorMsg(response);
        }
    }
});